<?php

class Utils
{	
	public static function Error($messege) {
		if(DEBUG) {
			echo '<br>';
			print "Error: ".$messege;
			echo '<br>';
		}
	}
	
	public static function Warning($messege) {
		if(DEBUG) {
			echo '<br>';
			print "Warning: ".$messege;
			echo '<br>';
		}
	}
	
	public static function boundries_check($x, $y) {
		return ( ($x < ROW_SIZE && $x >= 0) && ($y < COL_SIZE && $y >= 0) );
	}

}

?>